package com.itheima.d1_char_stream;

import java.io.FileWriter;
import java.io.Serial;
import java.io.Serializable;

public class FileWriterTest3 {
    public static void main(String[] args) throws Exception{
        FileWriter fw = new FileWriter("ddd.txt",true);
        fw.write(System.lineSeparator());
        fw.write("This is a start");
        fw.flush();

        fw.write(System.lineSeparator());
        fw.write("This is a test");
        fw.close();

/*        fw.write(System.lineSeparator());
        fw.write("This is a end");*/
    }
}
